package com.jintian.smart.platform.system.provider;

import com.jintian.smart.base.api.system.provider.IDictProvider;
import com.jintian.smart.platform.system.service.DictService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(timeout = 6000)
public class DictProvider implements IDictProvider {
    @Resource
    private DictService dictService;

    /**
     * 获取字典Label
     */
    @Override
    public String getDictDataLabel(String dictCode, String dataValue) {
        return dictService.getDictDataLabel(dictCode, dataValue);
    }
}
